#include <windows.h>
#include <glew.h>
#include <GL/glu.h>
#include "Moteur.h"



//#include <iostream>
//#include <fstream>
//#include <sstream>

Moteur::Moteur(float size,double gravitex,double gravitey, double gravitez,int nbparticles,bool activated)
{
	this->m_gx=gravitex;
	this->m_gy=gravitey;
	this->m_gz=gravitez;
	this->m_active=activated;
	m_rand_direction_max=0,0000001;
	m_particles_size=size;
}

Moteur::~Moteur(void)
{

}

const double *Moteur::getGravite()
{
	double * result = new double [3];
	result[0]=m_gx;
	result[1]=m_gy;
	result[2]=m_gz;
	return result;
}

void Moteur::setColor(float rouge,float vert,float bleu) 
{
	this->m_r =rouge;
	this->m_g =vert;
	this->m_b =bleu;
}


double * Moteur::getColor()
{
	double * tmp = new double[3];
	tmp[0]=m_r;
	tmp[1]=m_g;
	tmp[2]=m_b;

	return tmp;
}

void Moteur::setActive(bool activated)
{
	this->m_active=activated;
}

